import mountNativeElement from "./mountNativeElement";
import isFunction from "./isFunction";
import mountComponent from "./mountComponent";

export default function mountElement(vDom, container, oldDom) {
//  component vs NativeElement
  if (isFunction(vDom)) {
    //  component
    mountComponent(vDom, container, oldDom);
  } else {
    //  nativeElement
    mountNativeElement(vDom, container, oldDom);
  }
}
